package extendDemo;

public class Consultant extends People {
    private int num;

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public void printInfo(){
        System.out.println(getName() + "解答问题的总人数为： " + num);
    }
}
